class AddDateColumnsToOrders < ActiveRecord::Migration
  def self.up
    add_column :orders, :blanked_out_at, :datetime
    add_column :orders, :filed_at, :datetime
    add_column :orders, :installed_on, :date
    add_column :orders, :after_serviced_on, :date
    add_column :orders, :order_made_on, :date
    add_column :orders, :entered_on, :date
    add_column :orders, :payed_on, :date
    add_column :order_made_payments, :payed_on, :date
  end

  def self.down
    remove_columns :orders,
      :blanked_out_at,
      :filed_at,
      :installed_on,
      :after_serviced_on,
      :order_made_on,
      :entered_on,
      :payed_on
    remove_columns :order_made_payments,
      :payed_on
  end
end
